@import "../../../styles/_commonColor.scss";

.upload{
  .titleNav{
    font-size: .26rem;
    line-height: 1rem;
    padding: 0 .3rem; 
    background: $white;   
    .btnExample{
      float: right;
      position: relative;
      padding-right: .3rem;
      img{
        width: .16rem;
        height: .23rem;
        margin-left: .1rem;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
      }
    }
  }
  .btnUpload{
    height: 5.2rem;
    width: 100%;
    position: relative;
    background: $white;    
    &>img{
      position: absolute;
      width: .32rem;
      height: .32rem;
    }
    .frameLeftTop{
      top: 0;
      left: .3rem;
    }
    .frameLeftBottom{
      bottom: 0;
      left: .3rem;      
    }
    .frameRightTop{
      right: .3rem;
    }
    .frameRightBottom{
      right: .3rem;
      bottom: 0;
    }
    .btnCamera{
      width: 100%;
      font-size: .3rem;
      text-align: center;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      -webkit-transform: translateY(-50%);
      .cameraImg{
        width: 1.2rem;
        height: 1rem;
      }
      .cameraText{
        color: $slidergreen;
        position: relative;
        margin: 0 1rem;
        &>img{
          width: .3rem;
          height: .3rem;
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
          -webkit-transform: translateY(-50%);
        }
        &>span{
          padding-left: .3rem;
        }
      }
      .cameraPrompt{
        color: $darkgray;
      }
    }
  }
  .btnBox{
    margin: 0 .3rem;
    background: #f2f2f2;
    position: relative;
    height: 1rem;
    line-height: 1rem;
    .submit{
      height: .88rem;
      width: 100%;
      border: none;
      font-size: .32rem;
      outline: none;
      background: #00b488;
      color: #fff;
      border-radius: .05rem; 
      position: absolute;   
      z-index: 2;  
   }
  }  
  .policyExample{
    width: 5.76rem;
    height: 7.86rem;
    position:absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);    
  }
  .uploadCompent {
    position: absolute;
    z-index: 3;
    width: 100%;
    height: 100%;
    opacity: 0;

  }
  .imgContainer {
    background-color: #636363;
    display:flex;
    align-items: center;
    justify-content: center;
    &:active{
      opacity: 0.5;
    }
    img{
      max-height: 100%;
      max-width: 100%;
      display: block;
      border:none;
    }

    img[src=""]{
      display: none;
      opacity: 0;
    }

    .hidden{
      opacity: 0;
      display: none;
    }
  }
}